﻿@{
    ViewBag.Title = "角色列表";
    Layout = "~/Views/Shared/_FrameLayout.cshtml";
}
@section scripts
{
    <script>
        $(document).ready(function () {
            var config = {
                title: '运行参数列表',
                url: '@Url.Action("GetList")',
                colNames: ['主键', '名称', '键', '值', '说明'],
                colModel: [
                    { name: 'Id', index: 'Id', width: 60, key: true, hidden: true },
                    { name: 'CnName', index: 'CnName' },
                    { name: 'Key', index: 'Key' },
                    { name: 'Value', index: 'Value' },
                    { name: 'Memo', index: 'Memo' }
                ],
                sortname: 'CnName',
                sortorder: "desc"
            };
            WikeGrid.Load(config);


            $("#btnAudit").click(function () {

                var row = WikeGrid.GetData();
                if (row != null) {
                    $(this).button("loading");
                    window.location.href = "/Holiday/Audit?id="+row.Id;
                } else {
                    parent.layer.alert("请选择要审核的数据");
                }
            });
        });

        function getContent() {
          
            var data = WikeGrid.GetSelectedArrayData();
            
            return data;
        }
    </script>
}



<form id="searchToolBar" class="alert alert-info form-inline toolbarsearch" action="">
    <div class="form-group">
        <label for="keywords">关键字</label>
        <input type="text" id="keywords" name="keywords" autocomplete="off" class="form-control" placeholder="请输入关键字" />

    </div>
   
    <button class="btn btn-danger" id="btnSearch" type="button">
        <i class="fa fa-search"></i>查询
    </button>
    <button class="btn btn-default" data-url="@Url.Action("Add")" id="btnAdd" type="button">
        <i class="fa fa-plus"></i>添加
    </button>
    <button class="btn btn-default" data-url="@Url.Action("Edit")" id="btnEdit" type="button">
        <i class="fa fa-reorder"></i>编辑
    </button>
    
   
</form>
<div class="jqGrid_wrapper">
    <table id="table_list"></table>
    <div id="pager_list"></div>
</div>

